package com.hatcher.cvte.model;

import java.io.Serializable;

public class Menu implements Serializable {

	private static final long serialVersionUID = 11241234213L;
	private String menuCode;

	private String menuName;

	private String parentMenuCode;

	public String getMenuCode() {
		return menuCode;
	}

	public void setMenuCode(String menuCode) {
		this.menuCode = menuCode;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public String getParentMenuCode() {
		return parentMenuCode;
	}

	public void setParentMenuCode(String parentMenuCode) {
		this.parentMenuCode = parentMenuCode;
	}

	@Override
	public int hashCode() {
		String in = menuCode + menuName + parentMenuCode;
		return in.hashCode();

	}

	@Override
	public boolean equals(Object obj) {
		Menu s = (Menu) obj;
		return menuCode.equals(s.menuCode) && menuName.equals(s.menuName);
	}
}